// app.js
var config = require('./utils/config');
App({
  globalData: {
    statusBarHeight: 0,
    navBarHeight: 0,
  },

  onLaunch() {
    // 判断是否登录 
    const sysInfo = wx.getWindowInfo();
    this.globalData.statusBarHeight=sysInfo.statusBarHeight
    const rpxToPxRatio = sysInfo.screenWidth / 750;
    this.globalData.navBarHeight=sysInfo.statusBarHeight + 80 * rpxToPxRatio - 1
  },

})
